package com.riguz.forks.framework.route;

import java.util.ArrayList;
import java.util.List;

import com.riguz.forks.framework.mvc.RequestHandler;

public class RouteHandler {
    private List<String>   parameters = new ArrayList<>();
    private RequestHandler handler    = null;
    private String         pattern    = null;

    public RouteHandler(RequestHandler handler, List<String> parameters, String pattern) {
        this.parameters = parameters;
        this.handler = handler;
        this.pattern = pattern;
    }

    public List<String> getParameters() {
        return this.parameters;
    }

    public String getPattern() {
        return this.pattern;
    }

    public RequestHandler getHandler() {
        return this.handler;
    }
}
